/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.axiom.persistence;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;

/**
 *
 * @author Shuhail
 */
public class student_fee_details {
    
    Session sess= null;
    Transaction tx = null;
    public student_fee_details() {
        
       SessionFactory sf = new Configuration().configure().buildSessionFactory();
       sess = sf.openSession();
       tx = sess.beginTransaction();
    }
    
    public boolean insertFresh(com.axiom.vo.student_fee_details details ) {
        
        try {
            sess.save(details);
            tx.commit();
        }
        catch(Exception e) {
            return false;
        }
        return true;
    }
}
